package com.liveneo.adapter.mobile.service;

import java.io.File;
import java.util.Date;
import java.util.List;
import com.liveneo.adapter.base.entity.PrpmVersion;

public interface VersionService {
    public abstract PrpmVersion getVersion(String versionId, String appType, String systemCode);

    public abstract List<PrpmVersion> getValidVersions(PrpmVersion record);

    public abstract List<PrpmVersion> getAllVersions(int currentPage, int pagesize, PrpmVersion prpmVersion);

    public abstract void addVersion(PrpmVersion version);

    public abstract List<PrpmVersion> getAllVersions();

    public abstract List<PrpmVersion> selectlatestVersion(String appType, String systemCode);

    public abstract void addIpaAndPlistVersionRec(File updateFile, String tmpIpaUrl, String mimeType, String version_Id, String versionConten, Date effectDate,
            String packageName, String appType, String systemCode, String downloadUrl, String mandatoryUpgrade);

    public abstract void deleteByPrimaryKey(Integer id);

    public abstract PrpmVersion selectByID(Integer id);

    public abstract int updateByID(PrpmVersion version);
}
